<div class="container">
    <div class="col-md-12">
        <div class="gdl-container">
            <div class="img-box pull-left">
                <?php if ($good->item_type < 10): ?>
                    <a href="<?php echo Yii::app()->createUrl('/front/good/skip', array('gid' => $good->goods_id)); ?>">
                    <?php else: ?>
                        <a  href="<?php echo $good->detail_url; ?>">
                    <?php endif; ?>
                    <img src="<?php echo $good->product_img; ?>" alt="<?php echo $good->goods_name; ?>">
                </a>
            </div>
            <div class="pull-left good-info">
                <h1><?php echo $good->goods_name; ?><i></i></h1>
                <div class="brief">
                    <span>质检说明：</span>
                    <?php echo $good->goods_brief; ?>
                </div>
                <div class="price-box">
                    <div class="pull-left original-price-box">
                        <div class="original-price">原价：<span class="font-arial ">&yen;<?php echo $good->p_price; ?></span></div>
                        <div class="promo-label">1ZW特价</div>
                    </div>
                    <div class="pull-left promo_price font-arial">
                        <?php echo $good->promo_price; ?>
                    </div>
                    <div class="pull-left ship-box">
                        <div class="ship"></div>
                        <div><?php
                            if ($good->p_price > 0) {
                                echo "(" . (round($good->promo_price / $good->p_price, 2) * 10) . "折)";
                            }
                            ?></div>
                    </div>
                    <div class="clearfix" /></div>

            </div>
            <div>
                <?php if ($good->item_type < 10): ?>
                    <a class="purchase-btn front-spt" href="<?php echo Yii::app()->createUrl('/front/good/skip', array('gid' => $good->goods_id)); ?>"></a>
                <?php else: ?>
                    <a class="purchase-btn front-spt" href="<?php echo $good->detail_url; ?>"></a>
<?php endif; ?>
            </div>
            <div class="sales-column">
                <div class="pull-left">
<?php $timer = GoodsModel::convertWaitTime($good->start_time, $good->end_time); ?>
                    <div><i></i><?php echo $timer['timer_lalbe']; ?></div>
                    <div class="num"><?php echo $timer['timer_str']; ?></div>
                </div>
                <div class="pull-left sales-box">
                    <div>已售出</div>
                    <div class="num"><span><?php echo $good->sales; ?></span></div>
                </div>
                <div class="pull-left">
                    <div>分享商品</div>
                    <div>
                        <div class="bdsharebuttonbox" data-tag="share_2" data-text="sh2" id="share_2">
                            <a class="bds_tsina" data-cmd="tsina"></a>
                            <a class="bds_tqq" data-cmd="tqq"></a>
                            <a class="bds_qzone" data-cmd="qzone" href="#"></a>                          
                            <a class="bds_baidu" data-cmd="baidu"></a>
                            <a class="bds_renren" data-cmd="renren"></a>
                            <a class="bds_renren" data-cmd="taobao"></a>
                            <a class="bds_more" data-cmd="more"></a>
                        </div>
                    </div>
                </div>
                <div class="clearfix" /></div>
        </div>
    </div>
    <div class="clearfix" /></div>   
</div>
</div> 
<div class="goodlist detail-tuijian">
    <div class="col-md-12">
        <div class="title">
            <h3><i class="front-spt"></i>购买过<font color="#EA185D" size="+2"><strong><?php echo $good->goods_name; ?></strong></font>的用户还看了</h3>
        </div>
    </div>
    <div class="body row" id="txbody">
    	<!-- 瀑布流分页参数  -->
        	<a href="javascript:void(0)" class="showmore" data-page="<?php echo $page; ?>" data-paginal="<?php echo Yii::app()->params->page_size['sault_good']; ?>" data-url="/front/good/ajax" data-sum="<?php echo Yii::app()->params->page_size['max_good'] ?>"></a> 
        <div id="goods_list">	
        <?php foreach ($cat_goods as $good): ?>
    <?php include $this->getViewFile('../lib/goodlist_detail'); ?>
<?php endforeach; ?>
        </div>
       
    </div>
	<div class="clearfix"></div>
</div>
</div>
<script type="text/javascript">
    $("#goods_list").html('');
</script>
<script type='text/javascript'>
    var DuoMaiSiteID = 109809;
    document.write(unescape("%3Cscript src='http://www.duomai.com/djl/ads.js' type='text/javascript'%3E%3C/script%3E"));
    document.write(unescape("%3Cscript src='http://www.duomai.com/djl/index.php?site_id=" + DuoMaiSiteID + ".js' type='text/javascript'%3E%3C/script%3E"));
    document.write(unescape("%3Cscript src='http://www.duomai.com/djl/duojinlian.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type='text/javascript'>
    try {
        var _djl_ = DuoJinLian._init_();
        _djl_.hulue('');
        _djl_.fankuibiaoqian('');
        _djl_.zhizuo('http://item.jd.com');
        _djl_.run();
    }
    catch (e)
    {
    }
</script>
<script type="text/javascript">
$(document).ready(function() {
	require(['front/homepage']);
});
    window._bd_share_config = {
        common: {
            bdText: '<?php echo $good2->goods_name; ?>',
            bdDesc: '<?php echo isset($good2->goods_brief) ?  str_replace(PHP_EOL, '', $good2->goods_brief) : str_replace(PHP_EOL, '', $good2->goods_name); ?>',
            bdUrl: '<?php echo Yii::app()->request->hostInfo . Yii::app()->createUrl('/front/good/show', array('gid' => $good2->goods_id)); ?>',
            bdPic: '<?php echo $good2->product_img; ?>',
        },
        share: [{
                "bdSize": 16
            }]
    };
    with (document)
        0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion=' + ~(-new Date() / 36e5)];

</script>

